{% extends 'home.html' %}

{% block right_content %}
      <ol class="breadcrumb">
        <li><a href="{{ url_for('backend_page.home') }}">数据可视化系统</a></li>
        <li>数据表管理</li>
    </ol>
    <div>
        <table class="table table-bordered">
            <thead>
            <tr style="background-color: dodgerblue;">
                <th colspan="3"><a href="#" style="color: white">数据表管理</a></th>
            </tr>
            </thead>
            <tbody>
            {% for model_name,admin_class in site.enable_admins.items() %}
                <tr>
                    <td class="col-md-8"><a href="{{ buildUrl('/kingadmin/table_list/{}'.format(model_name)) }}">{% if admin_class.model.__verbose_name__ %}{{ admin_class.model.__verbose_name__ }}{% else %}{{ model_name }}{% endif %}</a></td>
                    <td class="col-md-2"><a href="{{ buildUrl('/kingadmin/table_list/{}/add'.format(model_name)) }}"><i class="fa fa-plus-square" style="color: green" aria-hidden="true"></i>&nbsp;&nbsp;add</a></td>
                    <td class="col-md-2"><a href="{{ buildUrl('/kingadmin/table_list/{}'.format(model_name)) }}"><i class="fa fa-eye" style="color: gold"></i>&nbsp;&nbsp;view</a></td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}